﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SpeedTest
{

	public partial class AttachmentOpenSave : Form
	{
		private OpenSaveResult result = OpenSaveResult.Cancel;

		public AttachmentOpenSave()
		{
			InitializeComponent();
		}

		public OpenSaveResult Result
		{
			get
			{
				return result;
			}
		}

		private void btnOpen_Click(object sender, EventArgs e)
		{
			result = OpenSaveResult.Open;
			this.Close();
		}

		private void btnSave_Click(object sender, EventArgs e)
		{
			result = OpenSaveResult.Save;
			this.Close();
		}

		private void btnCancel_Click(object sender, EventArgs e)
		{
			result = OpenSaveResult.Cancel;
			this.Close();
		}
	}

	public enum OpenSaveResult
	{
		Open,
		Save,
		Cancel
	}
}
